home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 7: Programming / CDAT7.iso / demos / VisualAge for Java 2.0 Entry / setup / data1.cab / ide-e / IDE / cache / 160BLHA (.txt) < prev    next >
Encoding:
Java Class File  |  1998-09-16  |  1.7 KB  |  57 lines

  1. package com.sun.java.swing.event;
  2.  
  3. import com.sun.java.swing.table.TableModel;
  4. import java.util.EventObject;
  5.  
  6. public class TableModelEvent extends EventObject {
  7.    public static final int INSERT = 1;
  8.    public static final int UPDATE = 0;
  9.    public static final int DELETE = -1;
  10.    public static final int HEADER_ROW = -1;
  11.    public static final int ALL_COLUMNS = -1;
  12.    protected int type;
  13.    protected int firstRow;
  14.    protected int lastRow;
  15.    protected int column;
  16.  
  17.    public TableModelEvent(TableModel source) {
  18.       this(source, 0, Integer.MAX_VALUE, -1, 0);
  19.    }
  20.  
  21.    public TableModelEvent(TableModel source, int row) {
  22.       this(source, row, row, -1, 0);
  23.    }
  24.  
  25.    public TableModelEvent(TableModel source, int firstRow, int lastRow) {
  26.       this(source, firstRow, lastRow, -1, 0);
  27.    }
  28.  
  29.    public TableModelEvent(TableModel source, int firstRow, int lastRow, int column) {
  30.       this(source, firstRow, lastRow, column, 0);
  31.    }
  32.  
  33.    public TableModelEvent(TableModel source, int firstRow, int lastRow, int column, int type) {
  34.       super(source);
  35.       this.firstRow = firstRow;
  36.       this.lastRow = lastRow;
  37.       this.column = column;
  38.       this.type = type;
  39.    }
  40.  
  41.    public int getColumn() {
  42.       return this.column;
  43.    }
  44.  
  45.    public int getFirstRow() {
  46.       return this.firstRow;
  47.    }
  48.  
  49.    public int getLastRow() {
  50.       return this.lastRow;
  51.    }
  52.  
  53.    public int getType() {
  54.       return this.type;
  55.    }
  56. }
  57.